//
//  AnotherCell.m
//  TakeHer
//
//  Created by Jupiter on 15/6/17.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "AnotherCell.h"

@implementation AnotherCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.cityImage = [[UIImageView alloc]init];
        [self.contentView addSubview:self.cityImage];
        [self.cityImage release];
        self.cityTitle = [[UILabel alloc]init];
        [self.contentView addSubview:self.cityTitle];
        [self.cityTitle release];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat height = self.contentView.frame.size.height;
    CGFloat width = self.contentView.frame.size.width;
    self.cityImage.frame = CGRectMake(0, 20, width,height - 20);
    self.cityImage.layer.cornerRadius = 10.0f;
    self.cityImage.clipsToBounds = YES;
    self.cityTitle.frame = CGRectMake(0, height - 50, width, 50);
    self.cityTitle.textColor = [UIColor whiteColor];
}


- (void)awakeFromNib {
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
